import request from '@/utils/request'

export default {
  //获取医院设置列表
  getHospSetList(current,limit,hospitalSetQueryVo){
    return request({
      url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
      method: 'POST',
      data: hospitalSetQueryVo
    })
  },
  //修改医院设置状态
  updateHospSetStatus(id,status){
    return request({
      url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
      method: 'PUT',
    })
  },
  //根据id查询单挑医院设置信息
  findHospSetById(id){
    return request({
      url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
      method: 'GET',
    })
  },
  //根据id删除单挑医院设置信息
  removeHospSet(id){
    return request({
      url: `/admin/hosp/hospitalSet/${id}`,
      method: 'DELETE',
    })
  },
  //修改医院设置信息
  updateHospitalSet(hospitalSet){
    return request({
      url: `/admin/hosp/hospitalSet/updateHospitalSet`,
      method: 'POST',
      data:hospitalSet
    })
  },
  //增加医院设置信息
  addHostSet(hospitalSet){
    return request({
      url: `/admin/hosp/hospitalSet/saveHospitalSet`,
      method: 'POST',
      data:hospitalSet
    })
  },
  //批量删除医院设置信息
  removeHospSetByIdList(idList){
    return request({
      url: `/admin/hosp/hospitalSet/batchRemove`,
      method: 'DELETE',
      data:idList
    })
  }
}
